package com.sky.client;

import com.sky.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class UserMapperClient {
    
    @Autowired
    private UserMapper userMapper;
    
    /**
     * 根据时间范围统计用户数量
     * @param map
     * @return
     */
    public Integer countByMap(Map map) {
        return userMapper.countByMap(map);
    }
}